console.log('hello node啊');
setTimeout(()=>{
    console.log('定时器');
},1000);
console.log(global);//node的顶级对象
console.log(globalThis);// ES2020 指向顶级对象
console.log(globalThis === global);
//注意:node.js  不包含Bom 和 Dom 
// console.log(window,document,location,history，AJAX)    以上输出都会报错


// var http = require('http');
// http.createServer(function(request,response){
//     response.writeHead(200,{'Content-Type':'text/plain'});
//     response.end('hello,im coming');
// }).listen(9000);
// // 终端打印如下信息
// console.log('Server running at http://127.0.0.1:9000/');